<?php

	/**
	 * @see Bike_Js_Ext_form_field_Number
	 */
	require_once 'Bike/Js/Ext/form/field/Number.php';
	
	
	class Bike_Js_Ext_form_field_Price extends Bike_Js_Ext_form_field_Number
	{
		protected function initDefaultSettings()
		{
			parent::initDefaultSettings();
		
			$js = $this->js();
			$this->setSettings(array(
				'nanText' => $this->translate('{0} is not a valid price'),
               	'negativeText' => $this->translate('The price cannot be negative'),
               	'decimalPrecision' => 2,
			));
		}
	}
